import Vue from 'vue'
import VueRouter from 'vue-router'
//登录
import index from '../../page/index.vue';
//登录
import login from '../../page/login.vue';
//注册
import register from '../../page/register.vue';
//重置密码
import forgetpassword from '../../page/forgetpassword.vue';
//找回密码
import repassword from '../../page/repassword.vue';
//活动列表页
import actives from '../../page/actives.vue';
//个人信息
import personal from '../../page/personal.vue';
//404
import NotFound from '../../components/404.vue';

//routes
var routes = [
    {
        name: 'default',
        path: '/',
        component: index
    },
    {
        name: 'index',
        path: '/index',
        component: index
    },      
    {
        name: 'actives',
        path: '/actives',
        component: actives
    },    
    {
        name: 'login',
        path: '/login',
        component: login
    },
    {
        name: 'register',
        path: '/register',
        component: register
    },
    {
        name: 'repassword',
        path: '/repassword',
        component: repassword
    },
    {
        name: 'forgetpassword',
        path: '/forgetpassword',
        component: forgetpassword
    },    
    {
        name: 'personal',
        path: '/personal',
        component: personal
    },     
    {
        name: '404',
        path: '/404',
        component: NotFound
    }
];


Vue.use(VueRouter);

//实例化
var router = new VueRouter({
    routes
});

export default router;

